package com.nuanshui.heatedloan.fund.model;

import com.nuanshui.heatedloan.dal.BaseEntityImpl;

import java.util.Date;


/**
 * 用户资金流动类
 * @ClassName: UserFundAction 
 * @author guohao
 * @date Jan 4, 2016 3:27:14 PM 
 *
 */
public class UserFundAction extends BaseEntityImpl {

	private static final long serialVersionUID = 1L;
	private Long money;//流动的资金
	private String actionType;//流动的类型比如 充值，提现，支付，销售商品等等
	private Date createdAt;//时间
	private String userId;//用户id
	private Integer status;//流动的状态 现在到那不了 10表示流转完成已成功 
	private String bizId;//业务信息 ，如果当前这条信息是分批付的钱款扣除，那么就是分批付表的id
	private String platform;//平台
	private String userNick;//用户昵称
	private Date checkOkTime; //审核通过时间
	private String dealNum;//
	
	
	public String getDealNum() {
		return dealNum;
	}
	public void setDealNum(String dealNum) {
		this.dealNum = dealNum;
	}
	public String getPlatform() {
		return platform;
	}
	public void setPlatform(String platform) {
		this.platform = platform;
	}
	public String getBizId() {
		return bizId;
	}
	public void setBizId(String bizId) {
		this.bizId = bizId;
	}
	public Long getMoney() {
		return money;
	}
	public void setMoney(Long money) {
		this.money = money;
	}
	
	
	public String getActionType() {
		return actionType;
	}
	public void setActionType(String actionType) {
		this.actionType = actionType;
	}
	@Override
	public Date getCreatedAt() {
		return createdAt;
	}
	@Override
	public void setCreatedAt(Date createdAt) {
		this.createdAt = createdAt;
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	
	public String getPayMethod() {
		if(this.platform == null) {
			return null;
		}else {
			if(this.platform.equals("ALI")) {
				return "支付宝账号";
			}
			if(this.platform.equals("WX")) {
				return "微信账号";
			}
		}
		
		return null;
	}
	public String getUserNick() {
		return userNick;
	}
	public void setUserNick(String userNick) {
		this.userNick = userNick;
	}
	public Date getCheckOkTime() {
		return checkOkTime;
	}
	public void setCheckOkTime(Date checkOkTime) {
		this.checkOkTime = checkOkTime;
	}
}
